/*
 * NumericStatistics.h
 *
 *  Created on: 23 mai 2010
 *      Author: Mario
 */

#ifndef NUMERICSTATISTICS_H_
#define NUMERICSTATISTICS_H_

class NumericStatistics {
public:
	inline NumericStatistics()	: x_(0), x_squared_(0), count_(0){}; // empty
	void operator()( double value );
	double mean( );
	double variance( );
	virtual ~NumericStatistics(){};

private:
	double x_;
	double x_squared_;
	int count_;
};



#endif /* NUMERICSTATISTICS_H_ */
